package com.tgy.ailiyun.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.tgy.ailiyun.dao.UserDao;
import com.tgy.ailiyun.entity.User;
import com.tgy.ailiyun.entity.UserLoginInf;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserServiceImpl {
    @Resource
    UserDao userDao;

    public String getMD5(String userName){
        return this.userDao.getMD5(userName);
    }

    public int add(User user){
        return this.userDao.insert(user);
    }



//    public int aaa(User user){
//        User one =new LambdaQueryChainWrapper<>(userDao).eq(User::getLogin,"6666").one();
//        return 55;
//    }


}
